#include <iostream>
#include <string>

using namespace std;

class person
{
private:

public:
    string name;
    int id;
    int height;

public:
    person(string name , int id , int height)
        :name(name) , id(id) , height(height)
    {
        cout << "父亲构造函数" << endl;
    }
};

class man : public person
{
private:
    string name;
public:
    man(string name , int  id ,int height)
        : person(name , id ,height)
    {

    }
    void show_data()
    {
        cout << person::name << " " << person::id << " " << this->height << endl ; 
    }
};



int main(int argc, char const *argv[])
{
    man m("张三" , 1 , 131);
    m.show_data();
    return 0;
}
